{% extends "index/skeleton.html" %}
    <!--History of Funks-->
    
{% load tz %}

{% block body %}   
    {% get_current_timezone as TIME_ZONE %}
    {% timezone TIME_ZONE %}
    {% comment %}     remove hardcoded tz TODO {% endcomment %}
        {% if todays_funks %}
            <table class="table">
                <thead>
                <tr>
                <th scope="col"><i class="far fa-clock"></i></th>
                <th scope="col">Sender</th>
                <th scope="col">Empfänger</th>
                <th scope="col">Nachricht</th>
                </tr>
            </thead>
                {% for funkspruch in todays_funks %}
                    <tr>
                        <th scope="row">{{ funkspruch.date|date:"H:i"}}</th>
                        <td>{{ funkspruch.fromOp }}</td>
                        <td>{{ funkspruch.toOp }}
                        <td>{{ funkspruch.message }}
                    </tr>
                {% endfor %}
            </table>
        {% else %}
            <div class="alert alert-info align-middle" role="alert">
                Heute noch keine Funksprüche.
            </div>
        {% endif %}
    {% endtimezone %}
{% endblock %}
